package ooday02;

public class OverrideDemo {
    public static void main(String[] args) {
        Teacher zg = new Teacher( "张光", 30, "北京", 5000);
        zg.sayHi();
        Student ll = new Student( "李林", 18, "上海", "jsd408", "001");
        ll.sayHi();
        Doctor ww = new Doctor( "王伟", 40, "上海", "主任");
        ww.sayHi();
    }
}
